package com.CmJava.tomcat.Server.life;

public enum LifecycleState {
    NEW(false, (String)null),
    INITIALIZED(false, "after_init"),
    STARTING(true, "start"),
    IDELING(true, "ideling"),
    STOPPING(false, "stop"),
    DESTROYING(false, "destroy"),
    FAILED(false, (String)null);

    private final boolean available;
    private final String lifecycleEvent;

    private LifecycleState(boolean available, String lifecycleEvent) {
        this.available = available;
        this.lifecycleEvent = lifecycleEvent;
    }

    public boolean isAvailable() {
        return this.available;
    }

    public String getLifecycleEvent() {
        return this.lifecycleEvent;
    }
}
